package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;

/**
 * description DefaultSqlSessionFactory
 * author wy
 * date 2021-04-07 20:07
 **/
public class DefaultSqlSessionFactory implements SqlSessionFactory
{
    private Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration)
    {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession()
    {
        return new DefaultSqlSession(configuration);
    }
}
